package com.briup.day04;

/**
 * @author ThinkBook
 */
public class Test09_Table {
    public static void main(String[] args) {
        System.out.println("----------------商场库存清单----------------");
        System.out.println("品牌型号\t\t\t尺寸\t\t价格\t\t库存数");
//     第一行数据
        String MacBookAirName = "MacBookAir";
        double MacBookAirSize = 13.3;
        double MacBookAirPrice = 5699.0;
        int MacBookAirStore = 5;
        System.out.println(MacBookAirName + "\t\t" +MacBookAirSize + "\t" +MacBookAirPrice+ "\t" +MacBookAirStore);

        String ThinkPadT490Name = "ThinkPadT490";
        double ThinkPadT490Size = 14.0;
        double ThinkPadT490Price = 8499.0;
        int ThinkPadT490Store = 10;
        System.out.println(ThinkPadT490Name + "\t" +ThinkPadT490Size + "\t" +ThinkPadT490Price+ "\t" +ThinkPadT490Store);

        String MateBook14Name = "MateBook14";
        double MateBook14Size = 14.0;
        double MateBook14Price = 7199.0;
        int MateBook14Store = 18;
        System.out.println(MateBook14Name + "\t\t" +MateBook14Size + "\t" +MateBook14Price+ "\t" +MateBook14Store);

        System.out.println("---------------------------------------");
        int totalStore = MacBookAirStore + ThinkPadT490Store + MateBook14Store;
        double totalPrice = MacBookAirPrice * MacBookAirStore +
                ThinkPadT490Price * ThinkPadT490Store +
                MateBook14Price * MateBook14Store;
        System.out.println("总库存数：" + totalStore);
        System.out.println("商品库存总金额：" + totalPrice);
    }
    }

